<ui:composition xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets" 
	xmlns:p="http://primefaces.prime.com.tr/ui" template="template/template.xhtml">
	<ui:define name="title">
		<h:outputText value="#{msgs.login}"/>
	</ui:define>
	<ui:define name="bodyInclude">
		<p:outputPanel layout="block" rendered="#{null != param['error'] and param['error']=='true'}" styleClass="errorMessage">
			<h:outputText value="#{msgs.badCredentials}"/>
		</p:outputPanel>
		<form action="/testato/j_spring_security_check" class="center" method="post">
			<h:panelGrid columns="2" styleClass="marginAuto marginLogin">
				<h:outputText value="#{msgs.id}: "/>
				<p:inputText id="j_username" />
				<h:outputText value="#{msgs.password}: "/>
				<p:password feedback="false" id="j_password"/>
			</h:panelGrid>
			<button class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary" onmouseout="this.className='ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary';" onmouseover="this.className='ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary ui-state-hover';" type="submit">
				<span class="ui-button-icon-primary ui-icon ui-icon ui-icon-image"></span>
				<span class="ui-button-text">
					<h:outputText value="#{msgs.validate}"/>
				</span>
			</button>
		</form>
		<h:form> <!-- Necessary to mock the PrimeFaces theme on a classical HTML button. -->
			<p:commandButton rendered="false" />
		</h:form>
	</ui:define>
</ui:composition>